<?php

	class Setting_model extends CI_Model {

		protected $__tbname = 'setting';
		protected $__dbconf = 'default';

		var $id;	//int(10) unsigned	Primary Key	Auto Increment	NOT NULL
		var $code;	//varchar(50)			NOT NULL
		var $name;	//varchar(100)			NOT NULL
		var $description;	//varchar(250)			NULL
		var $val_1;	//varchar(50)			NOT NULL
		var $val_2;	//varchar(50)			NULL
		var $val_3;	//varchar(50)			NULL

		protected $__validation_rule = array(
			'id' => array('key' => 'PRI', 'type' => 'int', 'null' => FALSE, 'auto_increment' => TRUE),
			'code' => array('type' => 'varchar', 'size' => 50, 'null' => FALSE),
			'name' => array('type' => 'varchar', 'size' => 100, 'null' => FALSE),
			'description' => array('type' => 'varchar', 'size' => 250, 'null' => TRUE),
			'val_1' => array('type' => 'varchar', 'size' => 50, 'null' => FALSE),
			'val_2' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE),
			'val_3' => array('type' => 'varchar', 'size' => 50, 'null' => TRUE)
		);
	}
